﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BadmintonBuddy.Models.Club>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.ClubID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ClubID)%>
                <%: Html.ValidationMessageFor(model => model.ClubID)%>
            </div>
                     
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ClubName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ClubName)%>
                <%: Html.ValidationMessageFor(model => model.ClubName)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Address) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Address) %>
                <%: Html.ValidationMessageFor(model => model.Address) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PhoneNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PhoneNumber) %>
                <%: Html.ValidationMessageFor(model => model.PhoneNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CityID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CityID)%>
                <%: Html.ValidationMessageFor(model => model.CityID)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Description) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Description) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Website) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Website) %>
                <%: Html.ValidationMessageFor(model => model.Website) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Fees) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Fees) %>
                <%: Html.ValidationMessageFor(model => model.Fees) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Timings) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Timings) %>
                <%: Html.ValidationMessageFor(model => model.Timings) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Latitude) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Latitude, String.Format("{0:F}", Model.Latitude)) %>
                <%: Html.ValidationMessageFor(model => model.Latitude) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Longitude) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Longitude, String.Format("{0:F}", Model.Longitude)) %>
                <%: Html.ValidationMessageFor(model => model.Longitude) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Added) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Added, String.Format("{0:g}", Model.Added)) %>
                <%: Html.ValidationMessageFor(model => model.Added) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Courts) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Courts) %>
                <%: Html.ValidationMessageFor(model => model.Courts) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Surface) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Surface) %>
                <%: Html.ValidationMessageFor(model => model.Surface) %>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Zipcode) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Zipcode)%>
                <%: Html.ValidationMessageFor(model => model.Zipcode)%>
            </div>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsApproved) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsApproved)%>
                <%: Html.ValidationMessageFor(model => model.IsApproved)%>
            </div>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MetaContent" runat="server">
</asp:Content>

